<?php

if($msg->userInfo['isTeacher']) {
	$msg->replyText("只有学生才允许的操作");
} else if($msg->userInfo['tid'] === 'na') {
	$msg->replyText("您还没有提问题");
} else {
	$threadDao->reply($msg->userInfo, array("Content" => "用户的评价为：" . $comment));
	$threadDao->closeQuestion($msg->userInfo);
	$userDao->updateTID($msg->userInfo['uid'], "na");
	$msg->replyText("感谢您的评价");
}